package Deom1;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 周斌
 * Date: 2023-11-16
 * Time: 20:50
 */
public class Durk extends Animal implements All{

    public Durk(String name) {
        super(name);
    }

    @Override
    public void Fly() {
        System.out.println(this.getName()+"用翅膀在飞");
    }

    @Override
    public void Run() {
        System.out.println(this.getName()+"用双腿在跑");
    }

    @Override
    public void Swim() {
        System.out.println(this.getName()+"用双腿在游泳");
    }
}
